<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>用人单位信息管理</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript">
<!--
	var checked = false;
	function checkAll(check){
		checked = !checked;
		if(check != null){
			if(check.length){
				for(var i = 0; i < check.length; i ++){
					check[i].checked = checked;
				}
			}else{
				check.checked = checked;
			}
		}
	}
-->
</script>
</head>


<body>
<form name="searchForm" method="post">
<table class="bordernone" width="689" height="69" align="center">
  <tr>
    <td class="bg_blue" width="100" align="right" >执法编号：</td>
    <td width="140"><input type="text" name="supvInfoCode" value="${param.supvInfoCode}"></td>
    <td class="bg_blue" width="117" align="right">单位名称：</td>
    <td width="304"><input type="text" name="empInfoName" value="${param.empInfoName}"></td>
  </tr>
  <tr>
    <td class="nohover" colspan="4" align="center"><input class="buttonsearch" type="submit" value="查询">&nbsp;    <input class="buttonreset" type="reset" value="重置" ></td>
  </tr>
</table>
</form>
<table width="100%" border="1">
<tr>
    <td class="nohover" colspan="10"><input class="buttonadd" type="button" value="增加" onClick="javascript:window.location.href='<%=request.getContextPath()%>/SupervisionInfo.do?method=toAdd'"></td>
 </tr>
  <tr>
    <!-- <th width="35">选择</th> -->
    <th width="35">序号</th>
    <th width="40">详细</th>
    <th width="70">执法编号</th>
    <th width="280">单位名称</th>
    <th width="70">执法类型</th>
    <th width="70">监察日期</th>
    <th width="160">操作</th>
  </tr>
  <form name="form1" method="post" action="<%=request.getContextPath()%>/SupervisionInfo.do?method=delete">
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>
    <!-- <td><input type="checkbox" name="sid" value="${prod.supvInfoId}"></td> -->
    <td>${pageNum + lineInfo.count}</td>
    <td><a href="<%=request.getContextPath()%>/SupervisionInfo.do?method=detail&sid=${prod.supvInfoId}">详细</a></td>
    <td>${prod.supvInfoCode}</td>
    <td>${prod.employerInfo.empInfoName}</td>
    <td><c:if test="${prod.supvInfoType == '0'}">日常巡察</c:if><c:if test="${prod.supvInfoType == '1'}">专项检察</c:if><c:if test="${prod.supvInfoType == '2'}">督促缴费</c:if><c:if test="${prod.supvInfoType == '3'}">督促登记</c:if></td>
    <td><fmt:formatDate pattern="yyyy-MM-dd" value="${prod.supvInfoDate}"/></td>

    <td><input name="button2" type="button" class="buttonmodify" onClick="javascript:window.location.href='<%=request.getContextPath()%>/SupervisionInfo.do?method=toUpdate&sid=${prod.supvInfoId}&page=${intPage}'" value="修改"/>
    <!-- <input class="buttondelete" type="button" onClick="javascript:if(confirm('确定删除该数据吗？')){window.location.href='<%=request.getContextPath()%>/SupervisionInfo.do?method=delete&sid=${prod.supvInfoId}'}" value="删除" /> --></td>
  </tr>
  </c:forEach>
  </form>
  <tr>
    <td class="nohover" colspan="12" align="center">&nbsp;
    
    <form name="pageForm" method="post" action="<%=request.getContextPath()%>/SupervisionInfo.do?method=list">
<!--    <input type="button" value="全选/除" onClick="checkAll(document.form1.sid)"/>
    <input type="button" value="全部删除" onClick="javascript:if(confirm('确定删除选择的数据吗？')){form1.submit();}"/>-->
    <input type="hidden" name="supvInfoCode" value="${param.supvInfoCode}"/>
    <input type="hidden" name="empInfoName" value="${param.empInfoName}"/>
    <c:out value="${foot}" escapeXml="false"/>
    </form>
    </td>
  </tr>
</table>
</body>
</html>
